import request from '@/utils/request'

export function studentGetPapers(data) {
  return request({
    url: '/studet/paper/list',
    method: 'post',
    data
  })
}

export function studentGetScore(data) {
  return request({
    url: '/studet/paper/score',
    method: 'post',
    data
  })
}

export function studentGetPaper(data) {
  return request({
    url: '/studet/paper/get',
    method: 'post',
    data
  })
}

export function studentHandlePaper(data) {
  return request({
    url: '/studet/paper/submit',
    method: 'post',
    data
  })
}

export function teacherGetTests(data) {
  return request({
    url: '/teacher/exam/list',
    method: 'post',
    data
  })
}

export function teacherAddtest(data) {
  return request({
    url: '/teacher/exam/add',
    method: 'post',
    data
  })
}

export function teacherAddPaper(data) {
  return request({
    url: '/teacher/paper/add',
    method: 'post',
    data
  })
}

export function teacherGetPaper(data) {
  return request({
    url: '/teacher/paper/get',
    method: 'post',
    data
  })
}

export function teacherPublishPaper(data) {
  return request({
    url: '/teacher/paper/publish',
    method: 'post',
    data
  })
}

export function teacherUnPublishPaper(data) {
  return request({
    url: '/teacher/paper/unpublish',
    method: 'post',
    data
  })
}

export function teacherDeletPaper(data) {
  return request({
    url: '/teacher/paper/delet',
    method: 'post',
    data
  })
}

export function teacherPaperScore(data) {
  return request({
    url: '/teacher/paper/score',
    method: 'post',
    data
  })
}
